<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String id = request.getParameter("storid");
    String fid= request.getParameter("fid");
    String shi = request.getParameter("shi");
    if(shi==null){
    	shi="";
    }
    if(fid == null){
    	fid="";
    }
	if (id == null) {
		id = "";
	}
%>

<script type="text/javascript">
$(function(){
	
	<% if(fid!=""){%>

	 $.post('${ctx}/autoinn/facilitator/update/pro/ser', {
			id : $(':input[name="id"]').val(),
		}, function(result) {
		
			if (result.id != undefined) {
				//alert(result.status+" 和"+result.remarks+"还有"+result.sort);
				$('form').form('load', {
				
					'id' : result.id,
					'phone' :result.phone,
					'state' : result.state,
					'type' : result.type,
					'name':result.name
 					
				});
			 //alert(result.lid);
				//$('#iconCls').attr('class', result.iconCls);//设置背景图标
			}
			$.messager.progress('close');
		}, 'json');
	 
<%}%>
}); 		
</script>
<div align="center" id="faceldil">
	<form id="facilitator_updateForms" method="post" class="zzld_form">

		<input type="hidden" name="storid" value="<%=id %>" /> <br />
		<input type="hidden" name="id" value="<%=fid %>"/><br/>
		<table class="zzld_table" style="width: 100%">
			<tr>
				<th>手机号：</th>
				<td><input name="phone" value="" id="phone" class="easyui-validatebox"
					data-options="required:true" missingMessage="请编辑手机号!"
					style="width: 98%;" /></td>
				<th>姓名:</th>
				<td><input id="storelist" name="name" id="name"
					class="easyui-validatebox" data-options="required:true" missingMessage="请编辑姓名!" /></td>
			</tr>
			<tr>
				<th>状态:</th>
				<td><select name="state">
						<option value="1">启用</option>
						<option value="0">未启用</option>
				</select></td>
				
			<th>类型:</th>
				<td><select name="type">
				<%=shi==""?"<option value=\"0\">管理</option>":"" %>
					
						<option value="1">子级管理员</option>
				</select></td>
			
			</tr>
		
		</table>

	</form>
</div>